package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.ZzxxExaminationFillingquestion;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ZzxxExaminationFillingquestionMapper;
import com.ruoyi.system.service.IZzxxExaminationFillingquestionService;

/**
 * 填空题外键表Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-06-20
 */
@Service
public class ZzxxExaminationFillingquestionServiceImpl implements IZzxxExaminationFillingquestionService 
{
    @Autowired
    private ZzxxExaminationFillingquestionMapper zzxxExaminationFillingquestionMapper;

    /**
     * 查询填空题外键表
     * 
     * @param examinationId 填空题外键表主键
     * @return 填空题外键表
     */
    @Override
    public ZzxxExaminationFillingquestion selectZzxxExaminationFillingquestionByExaminationId(Long examinationId)
    {
        return zzxxExaminationFillingquestionMapper.selectZzxxExaminationFillingquestionByExaminationId(examinationId);
    }

    /**
     * 查询填空题外键表列表
     * 
     * @param zzxxExaminationFillingquestion 填空题外键表
     * @return 填空题外键表
     */
    @Override
    public List<ZzxxExaminationFillingquestion> selectZzxxExaminationFillingquestionList(ZzxxExaminationFillingquestion zzxxExaminationFillingquestion)
    {
        return zzxxExaminationFillingquestionMapper.selectZzxxExaminationFillingquestionList(zzxxExaminationFillingquestion);
    }

    /**
     * 新增填空题外键表
     * 
     * @param zzxxExaminationFillingquestion 填空题外键表
     * @return 结果
     */
    @Override
    public int insertZzxxExaminationFillingquestion(ZzxxExaminationFillingquestion zzxxExaminationFillingquestion)
    {
        return zzxxExaminationFillingquestionMapper.insertZzxxExaminationFillingquestion(zzxxExaminationFillingquestion);
    }

    /**
     * 修改填空题外键表
     * 
     * @param zzxxExaminationFillingquestion 填空题外键表
     * @return 结果
     */
    @Override
    public int updateZzxxExaminationFillingquestion(ZzxxExaminationFillingquestion zzxxExaminationFillingquestion)
    {
        return zzxxExaminationFillingquestionMapper.updateZzxxExaminationFillingquestion(zzxxExaminationFillingquestion);
    }

    /**
     * 批量删除填空题外键表
     * 
     * @param examinationIds 需要删除的填空题外键表主键
     * @return 结果
     */
    @Override
    public int deleteZzxxExaminationFillingquestionByExaminationIds(Long[] examinationIds)
    {
        return zzxxExaminationFillingquestionMapper.deleteZzxxExaminationFillingquestionByExaminationIds(examinationIds);
    }

    /**
     * 删除填空题外键表信息
     * 
     * @param examinationId 填空题外键表主键
     * @return 结果
     */
    @Override
    public int deleteZzxxExaminationFillingquestionByExaminationId(Long examinationId)
    {
        return zzxxExaminationFillingquestionMapper.deleteZzxxExaminationFillingquestionByExaminationId(examinationId);
    }
}
